import json
from threading import Thread

from sudai.mycustomers import eee

if __name__ == '__main__':
    # # 开启线程  参数1：方法名(不要带括号)   参数2：参数（元祖）      返回对象
    # p = Thread(target=eee)
    # p.start()  # 只是给操作系统发送了一个就绪信号，并不是执行。操作系统接收信号后安排cpu运行



    users3 = [
        ['13482033114', 'zhudaiwang168'],
        ['15900540276', 'zhidaiwang168'],
        ['13482311514', 'sudaiwang168'],
        ['18616056510', 'sudaiwang168'],
        ['15618967319', 'zhudaiwang168'],
        ['13248326806', 'zhudaiwang168'],
        ['18602126729', 'zhangcheng1234'],
        ['13636336402', 'zhudaiwang168'],
        ['13391018063', 'sudaiwang168']]

    str2 = json.dumps(users3)
    eee(str2)
    # p2 = Thread(target=eee, args=(str2,))
    # p2.start()  # 只是给操作系统发送了一个就绪信号，并不是执行。操作系统接收信号后安排cpu运行
    #
    # users3 = [
    #     ['13482033114', 'zhudaiwang168'],
    #     ['15900540276', 'zhidaiwang168'],
    #     ['13482311514', 'sudaiwang168'],
    #     ['18616056510', 'sudaiwang168'],
    #     ['15618967319', 'zhudaiwang168'],
    #     ['13248326806', 'zhudaiwang168'],
    #     ['18602126729', 'zhangcheng1234'],
    #     ['13636336402', 'zhudaiwang168'],
    #     ['13391018063', 'sudaiwang168']]
    #
    # str3 = json.dumps(users3)
    # p3 = Thread(target=eee, args=(str3,))
    # p3.start()  # 只是给操作系统发送了一个就绪信号，并不是执行。操作系统接收信号后安排cpu运行
